package cn.edu.bcu.ls.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.edu.bcu.ls.entity.Answer;
import cn.edu.bcu.ls.mapper.AnswerMapper;
import cn.edu.bcu.ls.serviceImpl.AnswerService;

@Service
public class AnswerServiceImpl implements AnswerService{

    @Resource
    private AnswerMapper answerMapper;

    @Override
    public int deleteByPrimaryKey(Integer aId) {
        return answerMapper.deleteByPrimaryKey(aId);
    }

    @Override
    public int insert(Answer record) {
        return answerMapper.insert(record);
    }

    @Override
    public int insertSelective(Answer record) {
        return answerMapper.insertSelective(record);
    }

    @Override
    public Answer selectByPrimaryKey(Integer aId) {
        return answerMapper.selectByPrimaryKey(aId);
    }

    @Override
    public int updateByPrimaryKeySelective(Answer record) {
        return answerMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Answer record) {
        return answerMapper.updateByPrimaryKey(record);
    }

}
